#include <iostream>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>

int main() {
    std::cout << "Hello, World! " << sizeof(float) << std::endl;

    for (int i=0; i<1; i++) {

//            fread(data, 102400, 1, fp);
//            Person* p = new Person();
        char * p = (char *)malloc(1024*1024*1024*1);
//            free(p);
//            int* p = new int[1024*1024*1024];

//            fwrite(p, sizeof(int), 1, fp);
//            delete p;
        perror(p);
        printf(" addr: %d \n  size():%d \r\n",p, malloc_usable_size(p));

    }

    char *pNew = new char (1024);
    printf(" addr: %d \n  pNew size():%d \r\n",pNew, msize(pNew));

    std::cout << "Hello, end! " << sizeof(float) << std::endl;

    return 0;
}
